import request from '@/utils/request'


export function getAnswerList(params){
    return request({
        url : '/answer/list',
        method : 'get',
        params
    })
}


export function getAnswerDetail(params){
    return request({
        url : '/answer/detail/' + params,
        method : 'get',
    })
}


export function editAnswer(data){
    return request({
        url : '/answer/edit',
        method : 'post',
        data
    })
}

export default {
    getAnswerList,
    editAnswer,
    getAnswerDetail
};